package ${packageName};

<#list imports as import>
import ${import};
</#list>
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

 /**   
 * @ClassName: C${underlineToCamel(sourceTable?lower_case,true?string)}Entity  
 * @Description:TODO(该类为数据中 表:${sourceTable} 对应的商业实体类.)
 * @author: 初始由代码生成器生成
 * @date:   ${.now}
 * @version V1.0
 * @Copyright: Copyright (c) ${.now ? string('yyyy')}
 * 申明：本内容未经授权,禁止外泄以及用于其他的商业项目.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EntityAttribute(selectTable = "${sourceTable}", updateTable = "${sourceTable}", identityProperty = "${primaryKey[0].columnName}",identityGenerateType = IdType.ID_WORKER_STR)
public class C${underlineToCamel(sourceTable?lower_case,true?string)}Entity extends Entity {
	<#list columns as col>
	<#if (col.columnComment)?length gt 0>
	// ${col.columnComment}
	</#if>
	private ${getDataType(col.dataType)} ${underlineToCamel(col.columnName?lower_case,false?string)};		
	</#list>
	
<#--	<#list columns as col>
	public ${getDataType(col.dataType)} get${underlineToCamel(col.columnName?lower_case,true?string)}(){
		return this.${underlineToCamel(col.columnName?lower_case,false?string)};
	}
	public void set${underlineToCamel(col.columnName?lower_case,true?string)}(${getDataType(col.dataType)} ${underlineToCamel(col.columnName?lower_case,false?string)}){
		this.${underlineToCamel(col.columnName?lower_case,false?string)} = ${underlineToCamel(col.columnName?lower_case,false?string)};
	}
	
	</#list>
	
	public C${underlineToCamel(sourceTable?lower_case,true?string)}Entity(){
	}
	
	@Override
    public String toString(){
    	return " C${underlineToCamel(sourceTable?lower_case,true?string)}Entity ["
				<#list columns as col>
    	         <#if col_has_next>
    	       +" ${underlineToCamel(col.columnName?lower_case,false?string)} = " +${underlineToCamel(col.columnName?lower_case,false?string)} +" ,"
    	         <#else>
    	       +" ${underlineToCamel(col.columnName?lower_case,false?string)} = " +${underlineToCamel(col.columnName?lower_case,false?string)}   
    	         </#if>
    	         </#list> 
    	       +" ]";
    }-->
	
}